projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92bab01
)
(outline-chart-subtree): Include outline-next-heading in loop conditions
author
Richard M. Stallman
<rms@gnu.org>
Wed, 25 May 1994 04:41:21 +0000
(
04:41
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 25 May 1994 04:41:21 +0000
(
04:41
+0000)
to detect end-of-buffer (and avoid infinite loop).
lisp/allout.el
patch
|
blob
|
history
diff --git
a/lisp/allout.el
b/lisp/allout.el
index 8f87eca6666ac99f468d3420f1a2296dc7df31fd..dde6c4cdca4af983e5f3b4e94442575930fc1f53 100644
(file)
--- a/
lisp/allout.el
+++ b/
lisp/allout.el
@@
-1453,9
+1453,9
@@
starting point, and PREV-DEPTH is depth of prior topic."
(or (outline-next-sibling curr-depth)
;; or no more siblings - proceed to
;; next heading at lesser depth:
- (while (<= curr-depth
- (outline-recent-depth))
-
(outline-next-heading
)))
+ (while (
and (
<= curr-depth
+
(outline-recent-depth))
+
(outline-next-heading)
)))
(outline-next-heading)))
((and (< prev-depth curr-depth)